<div id="leftContent">

<h1>Project Name</h1>
<p>The identifier for each project you create.</p>

<h1>Source files</h1>
<p>All source code of your application must be zipped into a single.</p>

<h1>Data files</h1>
<p>All your input files must be zipped into a single. Each input file will became a <i>Job</i>.</p>

<h1># processors</h1>
<p>This is the number of processors that your application needs.</p>

<h1>Parameters</h1>
<p>If your application needs operating parameters, you can report them here. The parameters will be the same for all <i>Jobs</i>.</p>

</div>

<div id="mainContent">

<h1>Submission</h1>

<?php
	switch ( strtolower($aviso) )
	{
		case "completetodoscampos":
			$msg = "Complete all fields!";
			break;

		case "processadoresinteiro":
			$msg = "# processors must be an integer!";
			break;

		case "semcodigofonte":
			$msg = "Select the source code file!";
			break;

		case "codigofontenaozip":
			$msg = "The source files must be in a ZIP file!";
			break;

		case "semarquivosentrada":
			$msg = "Select the datafile!";
			break;

		case "arquivosentradanaozip":
			$msg = "The datafiles must be in a ZIP file!";
			break;

		case "errouploadcodigofonte":
			$msg = "Error uploading the source code. Try again!";
			break;

		case "errouploadarquivosentrada":
			$msg = "Error uploading the datafile. Try again!";
			break;

		case "arquivoentradazipdefeituoso":
			$msg = "Error uploading the datafile. The ZIP file contains erros. Try again!";
			break;

		default:
			$msg = "";
			break;
	}
?>

<div id='submission'><center>
<form action='submit.php' enctype='multipart/form-data' method='POST'>
	<table cellpadding='4' cellspacing='0'>
		<tr><td>project name</td><td><input type='text' id='projectName' name='projectName' class='bigField' /></td></tr>
		<tr><td>source files</td><td><input type='file' id='projectSourceFile' name='projectSourceFile' class='fileField' /></td></tr>
		<tr><td>data files</td><td><input type='file' id='jobsDataFile' name='jobsDataFile' class='fileField' /></td></tr>
		<tr><td># processors</td><td><input type='text' id='projectRequiredProcessors' name='projectRequiredProcessors' class='littleField' /></td></tr>
		<tr><td>parameters</td><td><input type='text' id='projectParameters' name='projectParameters' class='bigField' /></td></tr>
		<tr><td colspan='2' align='right'><input type='submit' class='loginSubmit' value='submit' /></td></tr>
	</table>
</form>
<font color='red'><?=$msg;?></font>
</center></div>

</div>